<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
   <title>字段管理</title>
    <hdjs />
    <js file= '__PUBLIC__/js/mod.base.js,__PUBLIC__/js/mod.field.js' />
    <css file= '__PUBLIC__/css/mod.base.css' />
</head>
<body>
    <div class="hd-menu-list">
        <ul>
            <li>
                <a href="{:U('Model/index')}">模型列表</a>
            </li>
            <li class="active">
                <a href="javascript:;">字段列表</a>
            </li>
            <li>
                <a href="{:U('ModelField/add',array('mid'=>$_GET['mid']))}">添加字段</a>
            </li>
            <li>
                <a href="{:U('ModelField/update_cache',array('mid'=>$_GET['mid']))}" >更新缓存</a>
            </li>
        </ul>
    </div>
     <div class="hd-title-header">温馨提示</div>
        <div class="help">
            <ul>
                <li>
                  {$model['remark']}请谨慎修改！
                </li>
            </ul>
        </div>
    <div class="content">
        <form action="{:U('ModelField/beachdelete')}" method="post" name="operationForm">
        <table class="hd-table hd-table-list hd-form">
            <thead>
                <tr>
                    
                	<td class="hd-w30"><input type="checkbox"></td>
                    <td class="hd-w60">排序</td>
                    <td class="hd-w60">Fid</td>
                    <td>字段说明</td>
                    <td>字段名称</td>
                    <td>类型</td>
                    <td>系统</td>
                    <td>状态</td>
                    <td>列表</td>
                    <td class="hd-w150">操作</td>
                </tr>
            </thead>
            <tbody>
                <foreach name='data' item='v'>
                <tr>  
                	<td><input type="checkbox" name="fid[{$v.fid}]" value="{$v.fid}"></td>
                    <td><input type="text" name="sort[{$v.fid}]" value="{$v.sort}" class="hd-w60" /></td>
                    <td>{$v.fid}</td>
                    <td>{$v.title}</td>
                    <td>{$v.fname}</td>
                    <td>{$v.type}</td>
                    <td><if condition ='$v["is_system"]'>√<else />×</if></td>
                    <td><if condition ='$v["is_disabled"]'>×<else />√</if></td>
                    <td><if condition ='$v["show_lists"]'>√<else />×</if></td>
                    <td>
                        <if condition='!$v["is_system"]'>
                        <a href="{:U('ModelField/edit',array('fid'=>$v['fid'],'mid'=>$v['model_mid']))}">修改</a>
                        |
                        <a href="javascript:;" onclick="del_modal('{:U('ModelField/del',array('fid'=>$v['fid'],'mid'=>$v['model_mid']))}')">删除</a>
                        </if>
                    </td>
                </tr>
                </foreach>
            </tbody>
        </table>
        <input type="hidden" name="mid" value="{$Think.get.mid}" />
        <input type="button" class="hd-btn hd-btn-sm select_all" value="全选">
        <input type="button" class="hd-btn hd-btn-sm operation" value="排序" name="update_sort">
        <input type="button" class="hd-btn hd-btn-xm operation"  value="批量删除" name="update_del"/>
        </form>
    </div>
    

</body>
</html>